﻿using System.Web.Mvc;
using HMIS.MVC.CommonSupport;
using System.Web.Security;

namespace HMIS.MVC.Controllers
{
	public partial class MainController : BaseController
	{
		private static readonly log4net.ILog log = log4net.LogManager.GetLogger(typeof(MainController));

		public ActionResult Index()
		{
			log.Debug("MainController.Index() was called");
			return View();
		}

		//返回客户端Mac的md5值
		public ActionResult GetMacMd5()
		{
			string macMd5 = FormsAuthentication.HashPasswordForStoringInConfigFile(Request["mac"], "MD5");
			return Content(macMd5);
		}
	}
}
